#include "mydurableresetter.h"
#include "mywindpoint.h"
#include <iostream>
#include <cstdlib>
using namespace std;
void myDurableResetter::Reset(FastCast *dataToReset)
{
    myWindPoint* cast = dynamic_cast<myWindPoint*>(dataToReset);
    
    if(cast)
    {
        //cast->SetPosition(Point(320,240));

		Acceleration acc = cast->GetAcceleration();
		acc.SetAngle(acc.GetAngle().Rotate(Angle(10)));
		//acc.SetAcceleration(100);
        //acc.SetX(320 - cast->GetPosition().GetX());
        //acc.SetY(240 - cast->GetPosition().GetY());
        cast->SetAcceleration(acc);
//        cast->SetPosition(Point(rand()%640, rand()%480));
    }
}
